#region license
# This file is part of Grawlix.
# 
# Grawlix is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
# 
# Grawlix is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public
# License along with Grawlix.  If not, see
# <http://www.gnu.org/licenses/>.
#endregion

"""Moving pictures."""

namespace Grawlix.Services.Rendering
#import Grawlix.Services
import System

interface ISpriteResource(Grawlix.Services.IDynamicResource):
"""A loaded set of sprite data."""
	
	FriendlyName as string:
	"""A friendly name for the sprite."""
		get
	
	def FindAnimation(name as string) as ISpriteAnimation
	"""
	Looks up an animation based upon its name.
	Param name: The name of the animation to look up.
	Returns: The animation if found, else a default animation object.
	"""
	
	def TryFindAnimation(name as string) as ISpriteAnimation
	"""
	Looks up an animation based upon its name.
	Param name: The name of the animation to look up.
	Returns: The animation if found, else null.
	"""
	
	
